package com.hy.server;

import java.nio.ByteBuffer;

/**
 * author: houying
 * date  : 17-6-8
 * desc  :
 */
public interface ServerHandler<P> {

    P decode(ByteBuffer byteBuffer, Session session);

    void handle(P pkg);

}
